import request from "@/http/serve";

const addUser = (data: any) => request.post<any, any>("/user", data);

const getList = (params: any) => request.get<any, any>("/user", { params });

const delUser = (data: any) => request.delete<any, any>(`/user/${data.id}`);

const updateUser = (data: any) => request.patch<any, any>(`/user/${data.id}`, data);

const addTags = (data: any) => request.post<any, any>("/user/add/tags", data);

export { addUser, getList, delUser, updateUser, addTags };
